We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

add the property to a form <form data-abide>

I want to add the property data-abide to form like this

echo $this->tag->form(
    array(
        "spm_contacto/create",
        "autocomplete" => "off",
        "class" => "form-horizontal"
    ));

I want result

<form data-abide>

<form  data-abide action="/tesis/spm_contacto/create" class="form-horizontal" autocomplete="off" method="post" >


43.9k

what about:


echo $this->tag->form(
    array(
        "spm_contacto/create",
        "data-abide",
        "autocomplete" => "off",
        "class" => "form-horizontal"
    ));


43.9k
edited Jan '16

I respond to myself, it doesn't work !!!

I think, you will have to write your own helper for that: https://docs.phalcon.io/en/latest/reference/tags.html#creating-your-own-helpers



81.2k

Thank you very much and if I want to put a required to input would be the same case



81.2k

No, not work

I respond to myself, it doesn't work !!!